<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12" style="width: 12%;">{:__('Which_week')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-which_week" data-rule="required" class="form-control" readonly style="border: none;background-color: #fff;" type="text" value="{$row.which_week|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12" style="width: 12%;">{:__('Startdate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-startdate" data-rule="required" class="form-control datetimepicker" readonly style="border: none;background-color: #fff;" data-date-format="YYYY-MM-DD" data-use-current="true" type="text" value="{$row.startdate}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12" style="width: 12%;">{:__('Enddate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-enddate" data-rule="required" class="form-control datetimepicker" readonly style="border: none;background-color: #fff;" data-date-format="YYYY-MM-DD" data-use-current="true" type="text" value="{$row.enddate}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12" style="width: 12%;">{:__('Content')}:</label>
        <div class="col-xs-12 col-sm-10" style="overflow-x: auto;">
            
            <table class="table fieldlist" width="100%">
                <thead>
                    <tr>
                        <th>时间</th>
                        <th>生活活动</th>
                        <th>学习活动</th>
                        <th>游戏活动</th>
                        <th>户外活动</th>
                        <th>家园活动</th>
                    </tr>
                </thead>
                <tbody>
                    {foreach name=":json_decode($row.content, true)" id="item" key="key"}
                    <tr>
                        <td>
                            <P><input readonly style="border: none;" type="text" name="row[content][{$key}][date]" value="{$item.date}"/></P>
                            <p><input readonly style="border: none;" type="text" name="row[content][{$key}][name]" value="{$item.name}"/></p>
                        </td>
                        {foreach name="item.list" id="temp"  key="key1"}
                            <td style="background-color: {:$temp.color};">
                                <input type="hidden" name="row[content][{$key}][list][{$key1}][color]" value="{$temp.color}"/>
                                <p>活动名称：<input type="text" name="row[content][{$key}][list][{$key1}][label]" value="{$temp.label}"/></p>
                                <p>活动目标：<input type="text" name="row[content][{$key}][list][{$key1}][target]" value="{$temp.target}"/></p>
                                <p>指导重点：<input type="text" name="row[content][{$key}][list][{$key1}][focus]" value="{$temp.focus}"/></p>
                                <p>备注：<input type="text" name="row[content][{$key}][list][{$key1}][remark]" value="{$temp.remark}"/></p>
                            </td>

                        {/foreach}
                    </tr>
                    {/foreach}
                </tbody>
            </table>

        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
